define(function() {
    return ['$scope','$location', '$interval','$timeout', function($scope,$location,$interval,$timeout) {
    	$scope.$emit("top-show",'false');//顶部隐藏
    	$scope.$emit('menuTypeLight','case_src_lib'); 	//控制底部menu高亮
    	$scope.$emit('bub-menu','true'); 	//隐藏底部menu
    	$scope.$emit('flag-tag','21'); 	//显示底部文字
    	
    	//点击返回首页
    	$scope.goHome = function(){
    		$scope.$emit("goNext","/");
    	}
    	
    	//点击查看进度
    	$scope.checkProgress = function(){
    		if(transData.userType === "1"){
    			$scope.$emit("goNext","/mineLs");
    		}else if(transData.userType === "0"){
    			$scope.$emit("goNext","/minePt");
    		}
    	}
    	
    	//点击了解免息贷
    	$scope.goKnowLoan = function(){
    		$scope.$emit("goNext","/fireflyLoan");
    	}
    	
    	
        $scope.$apply();
    }];
});